/**
 * jims
 */
package com.jims.master.modules.patient.myRecord.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


/**
 * 同步his诊断信息Entity
 * @author chent
 * @version 2017-09-22
 */
public class CaseClinicDiagnosis extends DataEntity<CaseClinicDiagnosis> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 诊断类型
	private String name;		// 诊断名称
	private String diagnosisId;		// 诊断编码(ICD10)
	private String description;		// 诊断描述
	private Date diagnosisDate;		// 诊断日期
	private String clinicId;		// 门诊Id
	
	public CaseClinicDiagnosis() {
		super();
	}

	public CaseClinicDiagnosis(String id){
		super(id);
	}


	@Length(min=0, max=1, message="诊断类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="诊断名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="诊断编码(ICD10)长度必须介于 0 和 64 之间")
	public String getDiagnosisId() {
		return diagnosisId;
	}

	public void setDiagnosisId(String diagnosisId) {
		this.diagnosisId = diagnosisId;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDiagnosisDate() {
		return diagnosisDate;
	}

	public void setDiagnosisDate(Date diagnosisDate) {
		this.diagnosisDate = diagnosisDate;
	}
	
	@Length(min=0, max=64, message="门诊Id长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
}